package role

type Role struct {
	ID 			uint 	`json:"id" gorm:"primaryKey"`
	Name 		string 	`json:"name" gorm:"comment:'角色名称'" validate:"required,max=20"`
	PowerName	string	`json:"power_name" gorm:"comment:'权限名称'"`
	CreateTime 	int64 	`json:"create_time" gorm:"autoCreateTime"`
	UpdateTime 	int64	`json:"update_time" gorm:"autoUpdateTime"`
}

type Data struct {
	ID 			uint 	`json:"id" gorm:"primaryKey"`
	Name 		string 	`json:"name" gorm:"comment:'角色名称'" validate:"required,max=20"`
	PowerName	string	`json:"power_name" gorm:"comment:'权限名称'"`
	CreateTime 	int64 	`json:"create_time" gorm:"autoCreateTime"`
	UpdateTime 	int64	`json:"update_time" gorm:"autoUpdateTime"`
}


